TRIANGLE operation